package com.wideplay.warp.remoting;

/**
 * Created by IntelliJ IDEA.
 * User: dprasanna
 * Date: 1/10/2007
 * Time: 15:35:30
 * <p/>
 * TODO: Describe me!
 *
 * @author dprasanna
 * @since 1.0
 */
public interface HostBindingBuilder {
    /**
     * Assumes host is localhost.
     *
     * @param port Port to bind to (either server or client side)
     */
    void at(int port);

    /**
     * @param host Host to bind to (on server--means binding to a locally available name or ip;
     *  on client means bind to a remote host or ip). Can be a local name, domain name or ip address.
     * 
     * @param port Port to bind to (either server or client side)
     */
    void at(String host, int port);
}
